package com.weiyuwqj.api.model.convert;

/**
 * Created by FW on 2016/7/11.
 */
public class LotteryStatusCovert extends DefaultConvert {

    @Override
    public Object convert(Object val) {
        if(val == null)return "";
        if(!(val instanceof Integer)){
            return "";
        }
        int status = (Integer)val;
        if(status == 0){
            return "未使用";
        }else if(status == 1){
            return "已使用";
        }else{
            return "其他";
        }

    }
}
